// Router
var FBPostsRouter = Backbone.Router.extend({
	routes: {
	  "filter/:type": "urlFilter"
	},

	urlFilter: function (type) {
	  fbPostsView.filterType = type;
	  fbPostsView.trigger("change:filterType");
	}
});

window.router = new FBPostsRouter();